﻿using NETCore.Encrypt;
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;

namespace Fierce.Utility.Helper
{
    public static class EncryptHelper
    {
        public static string AESDecrypt(string data, string key)
        {
            return EncryptProvider.AESDecrypt(data, key);
        }
        public static string AESEncrypt(string data, string key)
        {
            return EncryptProvider.AESEncrypt(data, key);
        }
        public static string DESDecrypt(string data, string key)
        {
            return EncryptProvider.DESDecrypt(data, key);
        }
        public static string DESEncrypt(string data, string key)
        {
            return EncryptProvider.DESEncrypt(data, key);
        }
        public static string Md5(string srcString)
        {
            return EncryptProvider.Md5(srcString, MD5Length.L32);
        }
        public static string Sha1(string str)
        {
            return EncryptProvider.Sha1(str);
        }
        public static string Sha256(string srcString)
        {
            return EncryptProvider.Sha256(srcString);
        }
        public static string Sha384(string srcString)
        {
            return EncryptProvider.Sha384(srcString);
        }
        public static string Sha512(string srcString)
        {
            return EncryptProvider.Sha512(srcString);
        }
    }
}